package com.xiaoxing.zhinenghuacangku_liaocheng.di.module;

import com.jess.arms.di.scope.ActivityScope;
import com.xiaoxing.zhinenghuacangku_liaocheng.mvp.contract.LiaoCheng_KaiGuanMenContract;
import com.xiaoxing.zhinenghuacangku_liaocheng.mvp.model.LiaoCheng_KaiGuanMenModel;

import dagger.Module;
import dagger.Provides;


@Module
public class LiaoCheng_KaiGuanMenModule {
    private LiaoCheng_KaiGuanMenContract.View view;

    /**
     * 构建LiaoChengKaiGuanMenModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public LiaoCheng_KaiGuanMenModule(LiaoCheng_KaiGuanMenContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    LiaoCheng_KaiGuanMenContract.View provideLiaoChengKaiGuanMenView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    LiaoCheng_KaiGuanMenContract.Model provideLiaoChengKaiGuanMenModel(LiaoCheng_KaiGuanMenModel model) {
        return model;
    }
}